import request from '@/utils/request'

// 分类列表【business:classify:list】
export function list(data) {
  return request({
    url: `/classify/list?pageSize=${data.pageSize || 10}&pageNum=${data.pageNum || 1}`,
    method: 'post',
    data
  })
}

// 新增类别【business:classify:add】
export function add(data) {
  return request({
    url: '/classify/add',
    method: 'post',
    data
  })
}

// 删除类别【business:classify:remove】
export function remove(data) {
  return request({
    url: '/classify/remove',
    method: 'post',
    data
  })
}

// 类别详情【business:classify:list】
export function detail(data) {
  return request({
    url: '/classify/detail',
    method: 'post',
    data
  })
}

// 修改类别【business:classify:edit】
export function edit(data) {
  return request({
    url: '/classify/edit',
    method: 'post',
    data
  })
}